package com.zhijian.medical.dao.local;

import com.zhijian.medical.entity.po.MeetingData;
import com.zhijian.medical.entity.vo.request.MeetingDataSearchVo;
import com.zhijian.medical.entity.vo.response.MeetingDataVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MeetingDataMapper {
    int deleteByPrimaryKey(Long id);

    int insert(MeetingData record);

    int insertSelective(MeetingData record);

    MeetingData selectByPrimaryKey(Long id);

    MeetingData selectByMeetingId(Long id);

    int updateByPrimaryKeySelective(MeetingData record);

    int updateByPrimaryKey(MeetingData record);

    /**
     * 查询总数
     *
     * @param meetingDataSearchVo
     * @return
     */
    int count(MeetingDataSearchVo meetingDataSearchVo);

    /**
     * 查询列表
     *
     * @param meetingDataSearchVo
     * @return
     */
    List<MeetingDataVo> selectList(MeetingDataSearchVo meetingDataSearchVo);

    /**
     * 根据ID查询vo
     *
     * @param id
     * @return
     */
    MeetingDataVo selectVoById(Long id);

    /**
     * 批量删除
     *
     * @param idList
     * @return
     */
    void deleteByIdList(@Param("idList") List<Long> idList);

    /**
     * 动态删除
     *
     * @param meetingDataSearchVo
     * @return
     */
    void deleteByCondition(MeetingDataSearchVo meetingDataSearchVo);

    /**
     * 批量新增
     *
     * @param entities
     * @return
     */
    int insertBatch(@Param("entities") List<MeetingData> entities);

    /**
     * 根据MeetingId查询列表
     *
     * @param meetingId
     * @return
     */
    List<MeetingDataVo> selectListByMeetingId(Long meetingId);

    /**
     * 根据MeetingId查询一个
     *
     * @param meetingId
     * @return
     */
    MeetingDataVo selectVoByMeetingId(Long meetingId);
}